package com.leader.life.activity

import android.support.v7.widget.GridLayoutManager
import com.leader.life.base.BaseActivity
import com.leader.life.cons.Constants
import com.leader.life.adapter.MyAdapter
import com.leader.life.R
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity() {
    override fun initUI() {
        mRecyclerView.layoutManager = GridLayoutManager(this, 1)
        mRecyclerView.adapter = MyAdapter(this, Constants.custom, R.layout.item_recycler)
    }

    override fun layoutId(): Int = R.layout.activity_main
}
